package com.yanfan.maintain.mapper;

import com.yanfan.maintain.domain.SparePartsDevice;
import com.yanfan.maintain.domain.SparePartsDeviceExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SparePartsDeviceMapper {
    long countByExample(SparePartsDeviceExample example);

    int deleteByExample(SparePartsDeviceExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SparePartsDevice record);

    int insertSelective(SparePartsDevice record);

    List<SparePartsDevice> selectByExample(SparePartsDeviceExample example);

    SparePartsDevice selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SparePartsDevice record, @Param("example") SparePartsDeviceExample example);

    int updateByExample(@Param("record") SparePartsDevice record, @Param("example") SparePartsDeviceExample example);

    int updateByPrimaryKeySelective(SparePartsDevice record);

    int updateByPrimaryKey(SparePartsDevice record);

    int batchInsertAssoDevice(@Param("devices") List<SparePartsDevice> devices);
}
